# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(XComponent)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include
                    )
add_library(hello SHARED
            hello.cpp
            audio_opensles_test.cpp
            ohoslog/ohos_log.cpp)

target_compile_definitions(hello PUBLIC LOG_DOMAIN=0x1d22)
target_link_libraries(hello PUBLIC EGL)
target_link_libraries(hello PUBLIC GLESv3)
target_link_libraries(hello PUBLIC hilog_ndk.z)
target_link_libraries(hello PUBLIC ace_ndk.z)
target_link_libraries(hello PUBLIC ace_napi.z)
target_link_libraries(hello PUBLIC libc++.a)
target_link_libraries(hello PUBLIC OpenSLES)
